package com.my12306.third.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Author:苏牧夕
 * @Date:2020/5/13 23:44
 * @Version 1.0
 */
@ApiModel("OSS对象")
public class OssPolicyResult {
    @ApiModelProperty("访问用户身份验证中的用户标识")
    private String accessKeyId;
    @ApiModelProperty("用户表单上传的策略，经过base64编码过的字符串")
    private String policy;
    @ApiModelProperty("对policy签名后的字符串")
    private String signature;
    @ApiModelProperty("上传文件路径前缀")
    private String dir;
    @ApiModelProperty("oss中对外访问的域名")
    private String host;
    @ApiModelProperty("签名有效时间")
    private long expire;
    @ApiModelProperty("上传成功后回调设置")
    private String callback;

    public OssPolicyResult() {
    }

    public OssPolicyResult(String accessKeyId, String policy, String signature, String dir, String host, long expire, String callback) {
        this.accessKeyId = accessKeyId;
        this.policy = policy;
        this.signature = signature;
        this.dir = dir;
        this.host = host;
        this.expire = expire;
        this.callback = callback;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getCallback() {
        return callback;
    }

    public void setCallback(String callback) {
        this.callback = callback;
    }

    public String getPolicy() {
        return policy;
    }

    public void setPolicy(String policy) {
        this.policy = policy;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        this.dir = dir;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public long getExpire() {
        return expire;
    }

    public void setExpire(long expire) {
        this.expire = expire;
    }
}
